var plasma = getApiVersion(1);

var layout = {
    "desktops": [
        {
            "applets": [
            ],
            "config": {
                "/": {
                    "ItemGeometries-1728x1080": "",
                    "ItemGeometriesHorizontal": "",
                    "formfactor": "0",
                    "immutability": "1",
                    "lastScreen": "-1",
                    "wallpaperplugin": "org.kde.image"
                },
                "/Configuration": {
                    "PreloadWeight": "0"
                },
                "/General": {
                    "ToolBoxButtonState": "topcenter",
                    "ToolBoxButtonX": "231"
                },
                "/Wallpaper/org.kde.image/General": {
                    "Image": "file:///usr/share/wallpapers/rosa65-wallpaper.png"
                }
            },
            "wallpaperPlugin": "org.kde.image"
        }
    ],
    "panels": [
   /*     {
            "alignment": "left",
	    "plugin": "org.kde.panel65",
            "applets": [
                {
                    "config": {
                        "/": {
                            "PreloadWeight": "100"
                        },
                        "/ConfigDialog": {
                            "DialogHeight": "480",
                            "DialogWidth": "640"
                        },
                        "/General": {
                            "favoritesPortedToKAstats": "true",
                            "icon": "start-here"
                        },
                        "/Shortcuts": {
                            "global": "Alt+F1"
                        }
                    },
                    "plugin": "org.kde.plasma.kickoff65"
                },
                {
                    "config": {
                    },
                    "plugin": "org.kde.plasma.taskmanager65"
                },
                {
                    "config": {
                        "/": {
                            "PreloadWeight": "0",
                            "plugin": "org.kde.plasma.private.systemtray65"
                        }
                    },
                    "plugin": "org.kde.plasma.systemtray"
                },
                {
                    "config": {
                        "/": {
                            "PreloadWeight": "0"
                        }
                    },
                    "plugin": "org.kde.plasma.digitalclock65"
                }
            ],
            "config": {
                "/": {
                    "formfactor": "2",
                    "immutability": "1",
                    "lastScreen": "0",
                    "wallpaperplugin": "org.kde.image"
                },
                "/ConfigDialog": {
                    "DialogHeight": "84",
                    "DialogWidth": "1728"
                },
                "/Configuration": {
                    "PreloadWeight": "0"
                }
            },
            "height": 3.111111111111111,
            "hiding": "normal",
            "location": "bottom",
            "maximumLength": 96,
            "minimumLength": 96,
            "offset": 0
        }*/
    ],
    "serializationFormatVersion": "1"
}
;

plasma.loadSerializedLayout(layout)
panel = plasma.newPanel('org.kde.panel65')
panel.currentConfigGroup = []
panel.writeConfig("wallpaperPlugin", "org.kde.image")
panel.reloadConfig()

panel.height = 64

var kickoff = panel.addWidget("org.kde.plasma.kickoff65")
kickoff.currentConfigGroup = ["Shortcuts"]
kickoff.writeConfig("global", "Alt+F1")

panel.addWidget("org.kde.plasma.taskmanager65")

panel.addWidget("org.kde.plasma.keyboardlayout65")

panel.addWidget("org.kde.plasma.volume65")

panel.addWidget("org.kde.plasma.networkmanagement65")

panel.addWidget("org.kde.plasma.digitalclock65")
